﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<nelech.Models.DBModel.PuzzleFeedback>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	AdminRecycleBin
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>AdminRecycleBin</h2>

    <table>
        <tr>
            <th></th>
            <th>
                מס
            </th>
            <th>
                כותרת
            </th>
            <th>
                טקסט
            </th>
            
            <th>
                שם משתמש
            </th>
            <th>
                תאריך
            </th>
            
            <th>
                עיר
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("החזר", "AdminRestoreFeedback", new { id = item.id })%>
                <%= Html.ActionLink("מחק", "AdminDeleteFeedback", new { id = item.id })%>
            </td>
            <td>
                <%= Html.Encode(item.id) %>
            </td>
            
            <td>
                <%= Html.Encode(item.title) %>
            </td>
            <td>
                <%= Html.Encode(item.text) %>
            </td>
            <td>
                <%= Html.Encode(item.username) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.date)) %>
            </td>
            
            <td>
                <%= Html.Encode(item.city) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

